package com.javakc.pms.order.dispord.dao;

import com.javakc.commonutils.jpa.base.dao.BaseDao;
import com.javakc.pms.order.dispord.entity.DispOrd;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface DispOrdDao extends BaseDao<DispOrd,Integer> {
    // 根据名称查数量
    @Query("select count(s) from DispOrd s where s.orderName = :orderName")
    public int queryByName(@Param("orderName") String orderName);
}
